feat: use nix3-profile if it has to with -i#106
feat: use nix3-profile if it has to with -i#106dtomvan wants to merge 1 commit intonix-community:masterfrom
nix3-profile if it has to with -i#106Conversation
|
Should we even encourage people to use |
Well, $ nix profile list --json | jq '.elements["home-manager-path"]'
{
"active": true,
"priority": 5,
"storePaths": [
"/nix/store/cyij2blljr7bsjw72xnik8pcmk2z3rdw-home-manager-path"
]
}Also, I think we all know why Nix exists and as such will put as much as possible inside of configs, but at the end of the day there are always these edge-cases where you want to install something semi-temporarily. I don't think supporting it with comma is "encouraging" it's use nessecarily... |
Because `nix-env` and `nix3-profile` cannot be used together, I added a check for `~/.local/state/nix/profiles/profile` and if it exists, it will install the target package through `nix profile install` instead of `nix-env -iA`.
5555fb5 to
a30773a
Compare
Because
nix-envandnix3-profilecannot be used together, I added a check for~/.local/state/nix/profiles/profileand if it exists, it will install the target package throughnix profile installinstead ofnix-env -iA.Things done
nix flake checknix buildcargo clippy./result/bin/comma -i josmworks as intended on my system with a~/.local/state/nix/profiles/profile../result/bin/comma -i josmfails.